/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.pz.net.shared;

/**
 *
 * @author Jannek
 */
public enum Command {
    FALSE,
    TRUE,
    
    ILLEGAL_ACTION,
    
    GET_SALT,
    CREATE_CLIENT,
    CREATE_HOST,
    GET_HOST,
    
    GET_HOST_LIST,
    
    CLIENT_CREATED,
    
//    NAME_TAKEN,
//    
//    LOGIN_SUCCEEDED,
//    LOGIN_FAILED,
    
    SESSION_TIMED_OUT,
    
    HELLO,
    PING,
    PONG,
    
    FROM_USER,
    FROM_USER_MULTI,
    FROM_MASTER,
    NEW_NOTIFICATION,
    
    CONFIRM,
    
    ;
    
    public static final int VERSION = 1;
    
    public byte value()
    {
        return (byte) ordinal();
    }
    
    public static Command get(int value)
    {
        return values()[value];
    }
}
